(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/script/Save.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, 'ed6cdmBVBJNn6/QuqgiXquu', 'Save', __filename);
// script/Save.js

"use strict";

/**
 * 存档
 */
cc.Class({
    extends: cc.Component,

    properties: {},

    // onLoad () {},

    start: function start() {},


    onBeginContact: function onBeginContact(contact, selfCollider, otherCollider) {
        //播放存档点动画，关闭碰撞监听
        if (otherCollider.tag === cc.vv.TAG.HERO) {
            cc.vv.currentPos = otherCollider.node.getPosition();
            selfCollider.node.getComponent(cc.Animation).play("savePoint");
            selfCollider.node.getComponent(cc.RigidBody).enabledContactListener = false;
        }
    },

    update: function update(dt) {}
});

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=Save.js.map
        